package com.zerox.mapper;

import com.zerox.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper {
    List<SysRole> roleByName();

    List<SysRole> listRole(@Param("startIndex") Integer startIndex, @Param("pageSize") Integer pageSize,@Param("roleName") String roleName);

    int count();

    int add(SysRole sysRole);

    int delete(Integer roleId);

    SysRole selectById(Integer roleId);

    int update(SysRole sysRole);


}
